package org.jeecg.modules.sggg.mapper;

import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.sggg.entity.SgBacklog;
import org.jeecg.modules.sggg.entity.SgTreatmentAssist;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.jeecg.modules.system.entity.SysUser;

/**
 * @Description: 三高协诊
 * @Author: jeecg-boot
 * @Date: 2022-10-26
 * @Version: V1.0
 */
public interface SgTreatmentAssistMapper extends BaseMapper<SgTreatmentAssist> {

    Page<SgTreatmentAssist> queryList(Page<SgTreatmentAssist> page, String name, String idCard, String phone,List<String> responsibleAgencies, String memberId, String orgCode, String userId, String roleCode);

    Page<SgTreatmentAssist> queryReceiveList(Page<SgTreatmentAssist> page, String name, String idCard, String phone,List<String> responsibleAgencies, String memberId, String orgCode, String roleCode, String userId);

    Page<SgTreatmentAssist> queryTreatmentList(Page<SgTreatmentAssist> page, String name, String idCard, String phone,List<String> responsibleAgencies, String memberId, String orgCode,String roleCode,String userId);

    Page<SgTreatmentAssist> queryUpReferralList(Page<SgTreatmentAssist> page, String id);

    Page<SgTreatmentAssist> queryDownReferralList(Page<SgTreatmentAssist> page, String id);

    List<SysUser> getAdminUser(String orgCode);

    List<Map<String, Object>> yearConsultation(String orgCode, String createTime, String updateTime);

    List<SgTreatmentAssist> selectyByMemberIdList(String member_id,String status);
}
